data = {
  "inputs": {
    "input_1": [
      [
        [
          101,
          161,
          8038,
          2769,
          6206,
          8195,
          1779,
          7178,
          102,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      ]
    ],
    "input_2": [
      [
        0
      ]
    ],
    "input_3": [
      [
        1
      ]
    ],
    "input_4": [
      [
        1
      ]
    ]
  },
  "outputs": [
    "Placeholder:0"
  ]
}
header = {"Content-Type": "application/json","Connection": "Keep-Alive"}
import json
import requests
import time
url = "https://dev-predict-phantom.amh-group.com/nlpcv-target-price-v1-tfserver/v1/models/nlpcv-target-price-v1-tfserver:predict"

session = requests.session()
while 1:
    start = time.time()
    req = session.post(url,data=json.dumps(data),headers=header)
    print(req.json())
    print("time use:" + str(time.time() - start))









